local sk__yinshi = fk.CreateSkill {

  name = "sk__yinshi",

  tags = { Skill.Compulsory, },

}



sk__yinshi:addEffect(fk.DamageInflicted, {
  name = "sk__yinshi",
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__yinshi.name)
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(data.damage, sk__yinshi.name)
    if data.damageType ~= fk.ThunderDamage then
      data:preventDamage()
    end
  end,
})

return sk__yinshi